package com.core.family.admin.domain;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author honglei
 * @version 1.0
 * @time: 2024-6-14 10:14:21
 * @Description PO对象 字典
 */
@Data
@TableName(value = "uc_dict")
public class Dict implements Serializable {


    /*
     *
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /*
     *  字典代码
     */
    @TableField(value = "dict_code")
    private String dictCode;

    /*
     *  字典值代码
     */
    @TableField(value = "dict_img")
    private String dictImg;

    /*
     *  字段名称
     */
    @TableField(value = "dict_name")
    private String dictName;

    /*
     *  排序
     */
    @TableField(value = "dict_sort")
    private Integer dictSort;

    /*
     *  字典名称
     */
    @TableField(value = "dict_value")
    private String dictValue;

    /*
     *
     */
    @TableField(value = "id")
    //  private Long id;
    private String id;

    /*
     *
     */
    @TableField(value = "disable")
    private Integer disable;

    /*
     *  层级
     */
    @TableField(value = "level")
    private Integer level;

    /*
     *  父id
     */
    @TableField(value = "parent_id")
    //  private Long parentId;
    private String parentId;

    /*
     *  备注
     */
    @TableField(value = "remark")
    private String remark;

    /*
     *  状态
     */
    @TableField(value = "status")
    private Integer status;

    /*
     *
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField(exist = false)
    private List<Dict> children;
    @TableField(exist = false)
    private boolean hasChildren ;

}
